using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class intervention_planMap : EntityTypeConfiguration<intervention_plan>
    {
        public intervention_planMap()
        {
            // Primary Key
            this.HasKey(t => t.intervention_plan_id);

            // Properties
            this.Property(t => t.patient_id)
                .HasMaxLength(20);

            // Table & Column Mappings
            this.ToTable("intervention_plan");
            this.Property(t => t.intervention_plan_id).HasColumnName("intervention_plan_id");
            this.Property(t => t.patient_id).HasColumnName("patient_id");
            this.Property(t => t.intervention_history_id).HasColumnName("intervention_history_id");
        }
    }
}
